# -*- codeing = utf-8 -*-
# @Time : 2022/8/17 18:49
# @Author : ZN
# @Email : 747723508@qq.com
# @File : celery_main.py
# @Software: PyCharm
from celery import Celery
import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE','de.settings')

app = Celery('de') #创建celery应用

app.config_from_object('celery_tasks.celery_config') #引入celery配置任务队列

app.autodiscover_tasks(['celery_tasks.email']) #导入监听任务的文件夹